package com.situ.car.service.Impl;

import com.situ.car.dao.ICarBrandDao;
import com.situ.car.dao.Impl.CarBrandDaoImpl;
import com.situ.car.pojo.entity.CarBrand;
import com.situ.car.pojo.vo.BrandCountVo;
import com.situ.car.pojo.vo.OrderBrandCountVo;
import com.situ.car.service.ICarBrandService;

import java.util.List;

public class CarBrandServiceImpl implements ICarBrandService {
    private ICarBrandDao carBrandDao = new CarBrandDaoImpl();
    @Override
    public List<CarBrand> selectAll() {
        return carBrandDao.selectAll();
    }

    @Override
    public void add(CarBrand carBrand) {
        carBrandDao.add(carBrand);
    }

    @Override
    public Integer totalCost() {
        return carBrandDao.totalCost();
    }

    @Override
    public List<BrandCountVo> selectBrandCount() {
        return carBrandDao.selectBrandCount();
    }

    @Override
    public List<OrderBrandCountVo> selectOrderBrandCount() {
        return carBrandDao.selectOrderBrandCount();
    }
}
